import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询场站列表
export function getDatasetList(params) {
  return request({
    url: '/system/point-dataset/list',
    method: 'post',
    data: params
  })
}


// 查询数据集详细
export function getDatasetDetail(id) {
  return request({
    url: '/system/point-dataset/detail?id=' + id,
    method: 'get'
  })
}

// 查询场站详细
export function addDataset(params) {
  return request({
    url: '/system/point-dataset/add',
    method: 'post',
    data: params
  })
}

// 查询场站详细
export function updateDataset(params) {
  return request({
    url: '/system/point-dataset/update',
    method: 'post',
    data : params
  })
}

// 查询场站详细
export function delDataset(id) {
  return request({
    url: '/system/point-dataset/del?id=' + id,
    method: 'get'
  })
}


// 查询场站详细
export function batchDelDataset(ids) {
  const params = {
    'ids' : ids
  }
  return request({
    url: '/system/point-dataset/batchDel',
    method: 'post',
    data: params
  })
}


export function getDatasetPointList(params) {
  return request({
    url: '/system/point-dataset/getDatasetPointList',
    method: 'post',
    data: params
  })
}
